

package com.hazelcast.internal.monitor.impl;

/**
 * Monitoring events emitted by an index when the partition set it covers changes. It
 * is possible for a CHANGE_STARTED and CHANGE_FINISHED pair to be emitted without a
 * change to the underlying partition set. For example if a index is requested to
 * index a partition it already has in the set.
 */
public enum PartitionIndexChangeEvent {
    /**
     * A partition set change has started
     */
    CHANGE_STARTED,
    /**
     * A new partition has been indexed and added to the set
     */
    INDEXED,
    /**
     * An existing partition has been unindexed and removed from the set
     */
    UNINDEXED,
    /**
     * A partition set change has finished.
     */
    CHANGE_FINISHED
}
